x86 ( 32bit) is the only architecture that uses Fast trap vector offset
( fast_trap_idx ). This makes sure that x86 is the only architecture to
use this variable.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
ctxt->trap_ctxt[i].vector = i;
ctxt->trap_ctxt[i].cs = FLAT_KERNEL_CS;
}
+
+#if defined(__i386__)
ctxt->fast_trap_idx = 0;
+#endif
/* No LDT. */
ctxt->ldt_ents = 0;
ctxt->trap_ctxt[i].vector = i;
ctxt->trap_ctxt[i].cs = FLAT_KERNEL_CS;
}
+
+#if defined(__i386__)
ctxt->fast_trap_idx = 0;
+#endif
/* No LDT. */
ctxt->ldt_ents = 0;
ctxt->trap_ctxt[i].vector = i;
ctxt->trap_ctxt[i].cs = FLAT_KERNEL_CS;
}
+
+#if defined(__i386__)
ctxt->fast_trap_idx = 0;
+#endif
/* No LDT. */
ctxt->ldt_ents = 0;